// 声明变量 联合类型
let phone = 13400110011 || "0591-88888888";
let fn01 = function (type) {
    return !!type;
};
let result01 = fn01(1);
console.log(result01);
const xiaoSun = (man) => {
    console.log(man);
};
xiaoSun({
    name: 'xiaosun',
    age: 18,
    sex: 1
});
// 交叉类型
let fn02 = function (num) {
    console.log(num.length);
};
fn02("67890123456"); // 11
let fn03 = (type) => {
    // console.log((<A>type).run)
    console.log(type.run);
};
fn03({
    run: '12123231',
    // build: '123'
});
// (window as any).abc = 123
const fn04 = (type) => {
    return type;
};
fn04(123);
